package com.regex.web.entity.community;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.entity.AutoIdBaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author mhy
 * @since 2019-12-30
 */
@TableName("t_article_like")
public class ArticleLikeDTO extends AutoIdBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 帖子id
     */
    @TableField("article_id")
    private Long articleId;

    /**
     * 会员id
     */
    @TableField("member_id")
    private Long memberId;
    // 昵称
    @TableField(exist = false)
    private String nickName; 

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }
    
    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "ArticleLikeDTO{" +
        "articleId=" + articleId +
        ", memberId=" + memberId +
        "}";
    }
}
